/**
 * 定义站点信息管理模块
 */
(function(window, angular, undefined){
	var Module = angular.module('water.apps.sw.test.dateTimePicker', []);
	
	Module.controller('dateTimePickerController',function($rootScope,$scope){
		
		$scope.varText = "";
		$scope.data = [{date:"2017-5-26 11:10"}];

		/**
		 * 增加一行，测试动态控件
		 */
		$scope.add = function(){
			$scope.data.push({date:"2017-5-26 12:10"});
		}
		
		/**
		 * 打印变量，测试变量绑定
		 */
		$scope.print = function(){
			var result = "";
			for(var i=0;i<$scope.data.length;i++){
				result += $scope.data[i].date+",";
			}
			$scope.varText = result;
		}
	});
}(window, angular));	